package net.xinqushi.pool.databasepool;

import com.alibaba.druid.pool.DruidDataSource;

import java.sql.Connection;
/**
 * @author xjie 2019/8/9 15:31
 * @description 数据库连接池,参考阿里云连接池
 * @see DruidDataSource
 */
public interface ConnectionPool {
    /**
     * 获取连接
     * @return
     */
    public Connection getConnection();

    /**
     * 释放连接
     * @param connection
     */
    public void releaseConnection(Connection connection);
}
